package com.campus.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.campus.common.annotation.Excel;
import com.campus.common.core.domain.BaseEntity;

/**
 * 公告对象 club_announce
 * 
 * @author hehe
 * @date 2025-10-22
 */
public class ClubAnnounce extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 社团公告id */
    private Long announceId;

    /** 公告标题 */
    @Excel(name = "公告标题")
    private String announceTitle;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 公告内容 */
    @Excel(name = "公告内容")
    private String announceContent;

    /** 发布人 */
    @Excel(name = "发布人")
    private String announceName;

    /** 公告时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "公告时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date announceTime;

    /** 社团id */
    @Excel(name = "社团id")
    private Long clubId;

    public void setAnnounceId(Long announceId) 
    {
        this.announceId = announceId;
    }

    public Long getAnnounceId() 
    {
        return announceId;
    }

    public void setAnnounceTitle(String announceTitle) 
    {
        this.announceTitle = announceTitle;
    }

    public String getAnnounceTitle() 
    {
        return announceTitle;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setAnnounceContent(String announceContent) 
    {
        this.announceContent = announceContent;
    }

    public String getAnnounceContent() 
    {
        return announceContent;
    }

    public void setAnnounceName(String announceName) 
    {
        this.announceName = announceName;
    }

    public String getAnnounceName() 
    {
        return announceName;
    }

    public void setAnnounceTime(Date announceTime) 
    {
        this.announceTime = announceTime;
    }

    public Date getAnnounceTime() 
    {
        return announceTime;
    }

    public void setClubId(Long clubId) 
    {
        this.clubId = clubId;
    }

    public Long getClubId() 
    {
        return clubId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("announceId", getAnnounceId())
            .append("announceTitle", getAnnounceTitle())
            .append("image", getImage())
            .append("announceContent", getAnnounceContent())
            .append("announceName", getAnnounceName())
            .append("announceTime", getAnnounceTime())
            .append("clubId", getClubId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
